import java.util.List;
import java.util.ArrayList;
public class ConcreteAggregate implements Aggregate{
    private List<Object> collection = new ArrayList<>();

    public void addItem(Object item) {
        collection.add(item);
    }

    @Override
    public Iterator createIterator() {
        return new ConcreteIterator(collection);
    }
}
